package demo.edu.upc;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class ConsultaPersonaActivity extends Activity{

	private EditText etDni;
	private EditText etApepat;
	private EditText etApemat;
	private EditText etNombre;
	private Button btnValidar;
	private Button btnConsultar;
	private Button btnCancelar;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.consultarpersona);
        
        etDni = (EditText)findViewById(R.id.dni);
        etApepat = (EditText)findViewById(R.id.apepaterno);
        etApemat = (EditText)findViewById(R.id.apematerno);
        etNombre = (EditText)findViewById(R.id.nombres);
        btnValidar =(Button)findViewById(R.id.validar_button);
        btnConsultar =(Button)findViewById(R.id.consultar_button);
        btnCancelar =(Button)findViewById(R.id.cancelar_button);
        
        
        btnConsultar.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				// Close the application
				Intent i = new Intent(ConsultaPersonaActivity.this, RespuestaActivity.class);
				startActivity(i);
			}
		});
        
        
        btnCancelar.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				// Close the application
				finish();
			}
		});
    }
}
